package com.hotpot.comm.base;


/**
 * 描述:统一返回结果
 * @author myx
 * @date 2017年7月10日 下午1:57:42
 */
public class R {
	
	private int returncode;
	private Object data;
	private String message;
	private String remark;
	
	public R(){}
	//有参构造方法
	public R(int code,Object data,Integer size,String message,String remark){
		setReturncode(code);
		setData(data == null?"":data);
		setMessage(message == null?"":message);
		setRemark(remark == null?"":remark);
	}
	//有参构造方法
	public R(int code,Object data,String message,String remark){
		setReturncode(code);
		setData(data);
		setMessage(message);
		setRemark(remark);
	}
	
	public int getReturncode() {
		return returncode;
	}
	public void setReturncode(int returncode) {
		this.returncode = returncode;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
}
